package com.atguigu.gmall.item.client;

import com.atguigu.gmall.item.client.fallback.ItemFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @author gsy
 * @date 2021年08月30日18:24
 * Description
 */
@FeignClient(value = "service-item",fallback = ItemFeignClientFallBack.class)
public interface ItemFeignClient {
    //查询商品详情信息
    @RequestMapping("/api/item/getItem/{skuId}")
     Map getItem(@PathVariable Long skuId);
}
